<?php

namespace App\Http\Controllers\PhpCookBook\Obj;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Log;

class FunController extends Controller
{
    //
    public function getClass(){
        //php __CLASS__、get_class()与get_called_class()的区别
        //http://www.cnblogs.com/water0729/p/5803217.html
        dump(get_class(),__CLASS__);
        Log::info("[".get_class()."]",['nih'=>'12321']);
    }

    public function getFunctions(){
        //dump($this->__getFunctions());//php类没有自带这个方法
        dump(get_class_methods(__CLASS__),get_class());
    }

    private function test(){
        $str = '方法列表中是否有这个私有方法';//有的
    }
}
